package com.sumer.brain.sys.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(name = "WechatLoginReq", description = "微信登录请求参数")
@Data
public class WechatLoginReq {

    @Schema(description = "微信授权码")
    private String code;

    @Schema(description = "用户信息")
    private WechatUserInfo userInfo;

    @Schema(description = "设备信息")
    private String deviceInfo;

    @Data
    @Schema(description = "微信用户信息")
    public static class WechatUserInfo {
        @Schema(description = "用户昵称")
        private String nickName;

        @Schema(description = "用户头像")
        private String avatarUrl;

        @Schema(description = "用户性别")
        private Integer gender;

        @Schema(description = "用户所在国家")
        private String country;

        @Schema(description = "用户所在省份")
        private String province;

        @Schema(description = "用户所在城市")
        private String city;

        @Schema(description = "用户语言")
        private String language;
    }
}